<HTML>

    <head>
	<TITLE>Workflow.NET<%#actionname%>-<%#propertyname%></TITLE>
    <STYLE>
    <%#stylesheet%>
	.style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
    .style1 {
			font-family: Verdana, Arial, Helvetica, sans-serif;
			font-size: 12px;
			font-weight: bold;
			color: #FFFFFF;
      }
	.input-buttonswork
	  {
		font-family: Verdana, Arial;
		font-size: 11px;
		border: 1px inset #447392;
		color: #2A3B66;
		height: 21px;
		width:auto;
		background-image:url(<%#VirtualDirectory%>/images/button-bg.gif);
	  }
    </STYLE>
    </head>

	<BODY marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" onload="win()" scroll="no" >
		<form name="wf_theform" method="post">
            <table width="480" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#447392">
			  <tr>
			    <td height="24" colspan="2" bgcolor="#72A4CA" background="<%#VirtualDirectory%>/images/bg.jpg"><img src="images/spacer.gif" width="1" height="1"><span class="style1">AdvanceUI Fields</span></td>
		      </tr>
			  <tr bgcolor="#E7EFFE">
			    <td colspan="2"><br>
			      1. Please select the appropriate view button (either &quot;Role Based&quot; or &quot;General&quot;).<br><br>
		          2. Click the &quot;Add&quot; button and proceed with creating the relevant work action.<br><br>
		          3. General view - Activity View for the action is common for all the users.<br><br>
		          4. Role Based view - Each participant will have a unique activity view based on the role filter and configuration.
		        <br></td>
			  </tr>
			  <tr bgcolor="#FFFFFF">
			  <td width="225" valign="middle" bgcolor="#E0E0E0"><input type="radio" name="radNRole" onclick="javascript:checkradselect(radNRole,radRole)" >
	            General View </td>
			  <td width="232" valign="middle" bgcolor="#E9E9E9"><input type="radio" name="radRole" onclick="javascript:checkradselect(radRole,radNRole)">
			     Role Based View </td>

			  </tr>
			  <tr align="right" bgcolor="#FFFFFF">
			    <td colspan="2">
			      <input type="button" class="input-buttonswork" value="  Add  "   name="btnaddnew" onclick="Shownext()">
				<input type="button" class="input-buttonswork" value=" Close "  name="btnclose" onclick="window.close();">
				</td>
			  </tr>
			  <tr align="center" bgcolor="#84B1CF">
			    <td height="24" colspan="2"><img src="images/spacer.gif" width="1" height="1"></td>
		      </tr>
			</table>



			<input type="hidden" name="_hidtempstore" id="_hidtempstore">
			<input type="hidden" name="_mode" ID="_mode">
			<input type="hidden" name="_pageinfo" id="_pageinfo">
		</form>
		<SCRIPT>
			function Shownext()
			{

				//var obj = eval("frame_preview");
				//var d = obj.document;
				var d = document;
				var IsRole="";

				if(d.wf_theform.radRole.checked)
				{
					IsRole="Yes";

				}
				else if(d.wf_theform.radNRole.checked)
				{
					IsRole="No";

				}


				if(IsRole=="Yes")
				{
					document.wf_theform._pageinfo.value ="pagewithRole";
					document.wf_theform._hidtempstore.value="RoleBased";
				}
				else
				{

					document.wf_theform._pageinfo.value ="pagewithoutRole";
					document.wf_theform._hidtempstore.value="NotRoleBased";

				}

				document.wf_theform._mode.value="addnew";
				document.wf_theform.submit();

			}

			function checkradselect(obj1,obj2)
			{

						 if(obj1.checked)
							obj2.checked=false;
						 if(obj2.checked)
							obj1.checked=false;

			}
			function win()
			{
			self.moveTo(0,0);
			self.resizeTo(510,265);

			}


		</SCRIPT>
	</BODY>
</HTML>
